<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

  <%
  
  	Option explicit
  
	  if request.form("cancel") <> ""  then
			response.redirect("menu.aspx")	  
	  End if
  
'	Page called by itself, it updates or inserts a record then goes back to the main list
	if request.form("update") <> ""  then

		call MakeConn(objConn, DATABASE)	
		call MakeRs_add(objRs,objConn, "Select  * from persons where userid=" & FormatStringDb(session("UserId")) )

' 			aggiorna schema colore
			objRS("ColorScheme") = request("ColorScheme")
			session("ColorScheme") = request("ColorScheme")
			objRs.update
			response.redirect("menu.aspx?msgtype=I&msgno=" & MSGNO_UPDATE_DONE)
		End if
				
%>

<html><!-- InstanceBegin template="/Templates/common.dwt" codeOutsideHTMLIsLocked="false" -->
<!--#include virtual="/timereport/include/auth.asp" -->
<!--#include virtual="/timereport/include/common.asp" -->

<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Modifica password</title>
<!-- InstanceEndEditable --> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- InstanceBeginEditable name="head" -->
<link href="include/commoncss.asp" rel="stylesheet" type="text/css">
<!-- InstanceEndEditable -->
</head>

<SCRIPT language=JavaScript src= "/timereport/include/menu/menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src= "/timereport/include/menu/mmenu.js" type=text/javascript></SCRIPT>

<body>
<table width="760" border="0" align="left" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="30" class="BarraTop"><div align="right">Utente: <%= session("UserName") %> 
      </div></td>
  </tr>
  <tr>
    <td height="30">&nbsp;</td>
  </tr>
  <tr> <!-- InstanceBeginEditable name="principale" -->   
    <td >
          <form name="form1" method="post" action="personalizza.asp">
        <p>&nbsp;</p>
        <table width="50%" border="0" align="center" cellpadding="2" cellspacing="2" class="Riquadro">
          <tr bgcolor="#FFFFFF"> 
            <td height="15" colspan="4"><strong>Schema colore</strong></td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="15">&nbsp;</td>
            <td height="15">&nbsp;</td>
            <td height="15">&nbsp;</td>
            <td height="15">&nbsp;</td>
          </tr>
          <tr valign="top"> 
            <td width="90" height="15" bgcolor="#CCCCCC"> <div align="center"> 
              </div></td>
            <td height="15"> 
              <label> 
              <input name="ColorScheme" type="radio" value="1"  <%= IIf(session("ColorScheme")=1,"checked","") %> >
              Seppia</label></td>
            <td width="90" height="15" bgcolor="#CCCCCC"> 
              <div align="center"> </div></td>
            <td height="15"> 
              <label> 
              <input name="ColorScheme" type="radio" value="2" <%= IIf(session("ColorScheme")=2,"checked","") %> >
              Arancione</label> </td>
          </tr>
          <tr valign="top"> 
            <td height="15" bordercolor="#000000" bgcolor="#CCCC99"> <div align="center"> 
              </div></td>
            <td height="15"> 
              <label> </label></td>
            <td height="15" bgcolor="#FF9900"> 
              <div align="center"> </div></td>
            <td height="15"> 
              <label></label></td>
          </tr>
          <tr valign="top"> 
            <td height="15">&nbsp;</td>
            <td height="15">&nbsp;</td>
            <td height="15">&nbsp;</td>
            <td height="15">&nbsp;</td>
          </tr>
          <tr valign="top"> 
            <td height="15" bgcolor="#E2FFC6"> 
              <div align="center"> </div></td>
            <td> <label> 
              <input type="radio" name="ColorScheme" value="3" <%= IIf(session("ColorScheme")=3,"checked","") %> >
              Oliva</label> </td>
            <td height="15" bgcolor="#CCFFCC"> 
              <div align="center"> </div></td>
            <td> <label> 
              <input type="radio" name="ColorScheme" value="4" <%= IIf(session("ColorScheme")=4,"checked","") %> >
              Azzurro </label></td>
          </tr>
          <tr valign="top"> 
            <td height="15" bgcolor="#CCCC33"> <div align="center"> </div></td>
            <td> <label> </label></td>
            <td bgcolor="#66CCCC"> <div align="center"> </div></td>
            <td> <label></label></td>
          </tr>
          <tr valign="top" bgcolor="#FFFFFF"> 
            <td height="15">&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr valign="top" bgcolor="#FFFFFF"> 
            <td height="15" bgcolor="#F0F0F0">&nbsp;</td>
            <td> <label> 
              <input type="radio" name="ColorScheme" value="5" <%= IIf(session("ColorScheme")=5,"checked","") %> >
              Viola</label> </td>
            <td bgcolor="#FFFF99">&nbsp;</td>
            <td> <label> 
              <input type="radio" name="ColorScheme" value="6" <%= IIf(session("ColorScheme")=6,"checked","") %> >
              Giallo</label></td>
          </tr>
          <tr valign="top" bgcolor="#FFFFFF"> 
            <td height="15" bgcolor="#CC99FF">&nbsp;</td>
            <td>&nbsp;</td>
            <td bgcolor="#FFCC33">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr valign="top" bgcolor="#FFFFFF">
            <td height="15">&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table>
        <p><br>
        </p>
        <table width="50%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
    <td><input name="update" type="submit" class="FormButtont" id="update" value="Aggiorna">
              &nbsp;
              <input name="cancel" type="submit" class="FormButtont" id="cancel" value="Annulla"></td>
  </tr>
</table>
      </form>
	</td>
    <!-- InstanceEndEditable --></tr>
</table>
</body>
<!-- InstanceEnd --></html>
